import request from '@/utils/request'

// 数据采集
export function gatherDeptDirectorInfo(params) {
  return request({
    url: 'zxDeptDirectorFund/gatherDeptDirectorInfo',
    method: 'POST',
    data: params
  })
}

// 汇总
export function listDeptDirectorFundBalance(params) {
  return request({
    url: '/zxDeptDirectorFund/listDeptDirectorFundBalance',
    method: 'POST',
    data: params
  })
}

// 科室下拉
export function listAllDept(params) {
  return request({
    url: '/zxDeptDirectorFund/listAllDept',
    method: 'get'
  })
}

export function listPrimusCash(params) {
  return request({
    url: '/zxDeptDirectorFund/listPrimusCash',
    method: 'post',
    data:params
  })
}

// 导出
export function downloadKzr(params) {
  return request({
    url: '/zxDeptDirectorFund/download',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 导出
export function downloadDeptKzr(params) {
  return request({
    url: '/zxDeptDirectorFund/downloadDept',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 明细
export function DeptDirectorFundBalanceByCode(params) {
  return request({
    url: '/zxDeptDirectorFund/DeptDirectorFundBalanceByCode',
    method: 'post',
    data: params
  })
}

// 明细导出
export function downloadE(params) {
  return request({
    url: '/zxDeptDirectorFund/downloadE',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

//新增/修改科主任基金2019期初金额
export function saveOrUpdate(params) {
  return request({
    url: '/zxDeptDirectorFund/saveOrUpdate',
    method: 'post',
    data: params,
  })
}

//删除科主任基金2019期初金额
export function remove(params) {
  return request({
    url: '/zxDeptDirectorFund/deletePrimusCash',
    method: 'get',
    params,
  })
}
